package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrdersettingDao {
    /**
     * 根据日期查询
     * @param map
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(Map map);
    /**
     * 预约日期
     * @param orderDate
     * @return
     */
    long findCountByOrderDate(@Param("orderDate") Date orderDate);

    /**
     * 预约信息
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);


    /**
     * 添加预约信息
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);


}
